//
//  TCM_AuctionDetailsTableViewCell.swift
//  TCM_TradingProject
//
//  Created by 吕春海 on 2018/8/29.
//  Copyright © 2018年 lvchunhai. All rights reserved.
//

import UIKit

@objc protocol rankViewDelegat {
    func rankButtonClick()
}

class TCM_AuctionDetailsTableViewCell: UITableViewCell {
    @IBOutlet weak var openingBidLabel: UILabel!
    @IBOutlet weak var ladderLabel: UILabel!
    @IBOutlet weak var auctionNumberLabel: UILabel!
    @IBOutlet weak var latestPriceLabel: UILabel!
    @IBOutlet weak var auctionRankButton: UIButton!
    
    var delegate:rankViewDelegat?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        openingBidLabel.font = UIFont(name: "Bebas Neue", size: 20)
        ladderLabel.font = UIFont(name: "Bebas Neue", size: 20)
        auctionNumberLabel.font = UIFont(name: "Bebas Neue", size: 20)
        latestPriceLabel.font = UIFont(name: "Bebas Neue", size: 40)
        
        
    }

    @IBAction func toRankView(_ sender: UIButton) {
        delegate?.rankButtonClick()
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
